package org.tang.data;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

public class GetDate {

	static String fileName="E:\\stock\\大盘.txt";
	public static void main(String[] args) throws Exception {
		BufferedReader reader = new BufferedReader(new FileReader(new File(fileName))); 
		String line = null;
		int count = 0;
		while((line=reader.readLine())!= null){
			line = line.substring(0, 10);
			line = line.replace('/', '-');
			System.out.println(line);
			
			count++;
		}
		System.out.println(count);
	}

}
